package com.ruoyi.auth.controller;

import com.aestate.common.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @Autowired
    RedisService redisService;

    @GetMapping("/hello")
    public Object hello() {
        Object a1 = redisService.getCacheObject("a1");
        return a1;
    }
}
